<?php
namespace App\Api\Requests\Search;

use Illuminate\Validation\Rule;

use App\Api\Requests\BaseRequest;

class SearchRequest extends BaseRequest{
    public function authorize(){
        return true;
    }

    public function rules(){
        return [
            'sex' => ['required', Rule::in(['男', '女'])],
            // 'age' => ['required', new \App\Api\Rules\ConnectorVerify],
            // 'height' => ['required', new \App\Api\Rules\ConnectorVerify],
            // 'city' => ['required'],
            // 'college_tab' => ['required'],
            // 'face_score' => ['required'],
            // 'family' => ['required'],
            // 'income' => ['required'],
            // 'constellation' => ['required'],
            // 'carandhouse' => ['required'],
            // 'keyword' => ['required', new \App\Api\Rules\ConnectorVerify],
        ];
    }

    public function messages(){
        return [
            'sex.required'=> '请选择性别',
            // 'age.required'=> '请选择年龄范围',
            // 'height.required'=> '请选择身高范围',
            // 'college_tab.required'=> '请选择学院标签',
            // 'face_score.required'=> '请选择颜值标签',
            // 'family.required'=> '请选择家庭标签',
            // 'income.required'=> '请选择收入标签',
            // 'constellation.required'=> '请选择星座',
            // 'carandhouse.required'=> '请选择车房标签',
            // 'keyword.required'=> '请选择关键词',
        ];
    }
}